<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script>
			var arr1 = ["a","b","c"];
			var arr2 = [1,2,3];
			
			var arr3 = arr1.concat(arr2);
			console.log(arr1);
			console.log(arr2);
			console.log(arr3);
// 			console.log(arr1.push(arr2));
// 			console.log(arr1);
			
			var arr4 = arr3.slice(2);["c",1,2,3]
			var arr4 = arr3.slice(-2);
			var arr4 = arr3.slice(4,2);
			var arr4 = arr3.slice(2,4);//["c", 1]索引值包括坐标的不包括右边的。
			console.log(arr3);
			console.log(arr4);
			
			var arr5 = ["关羽","关羽","关羽"];
			var arr4 = arr3.splice(0,3,"关羽","关羽","关羽");
			console.log(arr3);
			console.log(arr4);
		</script>
	</body>
</html>
